<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<%@ include file="/jspf/public.jspf" %>
  </head>
  
  <body>     
                 购物车显示页面,后面用ajax实现
      <table border="1">
      	   <tr>
      	   	<td>编号</td>
      	   	<td>名称</td>
      	   	<td>价格</td>
      	   	<td>数量</td>
      	   	<td>小计</td>
      	   	<td>删除</td>
      	   </tr>
      	   <c:forEach items="${sessionScope.forder.sorderSet}" var="sorder">
      	   		 <tr>
		      	   	<td>${sorder.goods.id}</td>
		      	   	<td>${sorder.name}</td>
		      	   	<td>${sorder.price}</td>
		      	   	<td><input type="text" size="2" value="${sorder.number}"/></td>
		      	   	<td>${sorder.price*sorder.number}</td>
		      	   	<td>删除</td>
		      	  </tr>
      	   </c:forEach>
      	   <tr>
      	   		<td colspan="6">
      	   		总价格为: ${forder.total}
      	   		<a href="${shop}/user/confirm.jsp">提交订单</a>
      	   		</td>  
      	   </tr>
      </table>
  </body>
</html>
